var GApp = {
    // Variables globales
    baseURL: null,
    
    // Clases de ayuda
    Helper: {
        createWaitDialog: function (id) {
            var pleaseWaitDiv = '<div class="modal fade" id="pleaseWaitDialog" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">';
            pleaseWaitDiv += '<div class="modal-dialog">';
            pleaseWaitDiv += '<div class="modal-content">';
            pleaseWaitDiv += '<div class="modal-header">';
            pleaseWaitDiv += '<h1>Cargando...</h1>';
            pleaseWaitDiv += '</div>';
            pleaseWaitDiv += '<div class="modal-body">';
            pleaseWaitDiv += '<div class="progress progress-striped active">';
            pleaseWaitDiv += '<div class="progress-bar" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%"></div>';
            pleaseWaitDiv += '</div>';
            pleaseWaitDiv += '</div>';
            pleaseWaitDiv += '</div>';
            pleaseWaitDiv += '</div>';
            pleaseWaitDiv += '</div>';
            $('#' + id).html (pleaseWaitDiv);
        },

        showPleaseWait: function () {
            $('#pleaseWaitDialog').modal ('show');
        },

        hidePleaseWait: function () {
            $('#pleaseWaitDialog').modal ('hide');
        }
    }
};
